import turtle
import random
t=turtle.Pen()
t.speed(0)
width=turtle.window_width()
height=turtle.window_height()
print(width,height)
turtle.bgcolor("black")
colors=["red","blue","green","yellow","purple","pink"]
for n in range(500):
    t.color(random.choice(colors))
    sides=random.randint(10,40)
    j=random.randint(3,9)
    x=random.randrange(0,width//2)
    y=random.randrange(0,height//2)
    t.setheading(90)
    t.penup()
    t.setpos(x,y)
    t.pendown()
    for m in range(sides):
        t.forward(2*m)
        t.right(360/j+1)
    t.setheading(90)
    t.penup()
    t.setpos(-x,y)
    t.pendown()
    for m in range(sides):
        t.forward(2*m)
        t.left(360/j+1)
    t.setheading(270)
    t.penup()
    t.setpos(-x,-y)
    t.pendown()
    for m in range(sides):
        t.forward(2*m)
        t.right(360/j+1)
    t.setheading(270)
    t.penup()
    t.setpos(x,-y)
    t.pendown()
    for m in range(sid
